package com.t216.dm216.common;

import com.t216.dm216.pojo.dto.DmUserDTO;

public class UserMap {
    /*Thread*/
    private final static ThreadLocal<DmUserDTO> threadLocal = new ThreadLocal<DmUserDTO>();

    public static DmUserDTO get() {
        return threadLocal.get();
    }

    public static void set(DmUserDTO userDTO) {
        if (userDTO != null) {
            threadLocal.set(userDTO);
        }
    }
}
